# (c) 1998, 1999 ZeroG Software, Inc., all rights reserved.
#
echo "InstallAnywhere is preparing to install..."
#
# For making the env.properties files below
# Needs to be done here to avoid variables created
# within this script
#
USERENV=`set | sed 's,^\(.*\),"\1",'`
#
# SAVE PWD SO WE CAN RESTORE IT
#
PPWD=`pwd`
#
# FIND THE LOCATION OF THE SELF-EXTRACTOR
#
linked=true
initname=`basename $0`
initdir=`dirname $0`
if [ ! $initdir = "." ]
then
cd $initdir
fi
initdir=`pwd`
currname=$initname
while [ $linked = true ]
do
lsstring=`ls -dgon $currname`
islink="`expr "$lsstring" : ".*[\>]\(.*\)"`"
if [ ${islink:-""} = "" -o ${islink:-"0"} = "0" ]
then
linked=false
else
nextdir="`expr "$islink" : "\(.*\).*/"`"
currname="`expr "$islink" : ".*/\(.*\)"`"
if [ ${currname:-""} = "" ]
then
currname=$islink
fi
if [ ${nextdir:-""} != "" -a ${nextdir:-"0"} != "0" ]
then
cd $nextdir
fi
fi
done
SEA_LOC="`pwd`/$currname"
cd "$PPWD"
#
# SETUP TEMP, SETUP LOCATIONS
#
if [ -d /tmp ] ; then
INSTBASE=/tmp
else
INSTBASE=$HOME
fi
cd "$INSTBASE"
mkdir install.dir.$$
cd install.dir.$$
mkdir InstallerData
ZIPLOC="$INSTBASE"/install.dir.$$
envPropertiesFile="$ZIPLOC/env.properties"
# Set up trap for interrupted installations
# This trap will catch if the user hits ^C in the console window where
# this script is being run. When caught the following function will
# be run to clean up the /tmp/install.dir.XXXX directory
#
tmp_dir_cleanup () {
echo
echo "WARNING! This installation has been interrupted. The"
echo "installation process will now terminate and the temporary"
echo "files it is using will be deleted from $ud."
echo
cd $PPWD
rm -rf $ud
exit;
}
trap "tmp_dir_cleanup" 1 2 3 4 6 8 10 12 13 15
installerdatapath="$ZIPLOC"/InstallerData
installzippath="$installerdatapath"/installer.zip
cd "$PPWD"
#
# DEFINE ALL-PURPOSE ERROR MESSAGE
#
errormsg="The download file appears to be corrupted. Please try\nto download again, and make sure you are using 'binary' mode.\n\nPlease do not attempt to install this archive file."
echo "lax.nl.message.vm.not.loaded=The installer either could not find a Java VM, or the Java VM on this system is too old. The installer requires Java 1.1.5 or later. It can be downloaded from http://java.sun.com/products/jdk/1.1/jre/" >> $templaxpath